//
//  CacheDataTool.swift
//  SunxianhuaTestApp
//
//  Created by abc on 2021/10/12.
//

import Foundation
class CacheDataTool {
    
    
    //存入值
    static func save(value :Any?,toKey :String){
        let userDefaults = UserDefaults.standard
        userDefaults.set(value, forKey: toKey)
        userDefaults.synchronize()
    }
    
    //取出值
    static func getValue(ofKey :String) ->Any?{
        return UserDefaults.init().value(forKey: ofKey)
    }
    
    
    
    
    
}
